package com.basin.micro.admin.module.department.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import com.basin.micro.admin.module.department.pojo.enums.DeptLevelEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basin_admin_department")
@RequireValFields(fields = {"dept_level", "dept_code", "dept_Name"})
@UniqueKeys(fields = {"dept_code", "dept_name"})
public class DepartmentEntity extends BaseEntity {
    private String deptCode;
    private String deptName;
    private String parentCode;
    private DeptLevelEnum deptLevel;
    private String deptDesc;
}
